Introduce a new internal api function that properly wraps the APR
thread initialization functions, and correctly checks return
results for issues.

Upstream never checks to see if there are problems, so they have
absolutely no idea if anything goes wrong.
Merge branch 'openbsd-1.2rebase' of https://github.com/tbullock/freeswitch-openbsd into openbsd-1.2rebase