Protect non-TLS packet pool creation with a mutex

Move creation of the Posix thread packet pool inside the critical
section controlled by the pkt_pool_thread_key_mutex. This should not be
necessary, but doesn't hurt.

This might help the OSX failure.