configure: check threads support in OpenBSD.