pthread_mutex_trylock(): init libthr if needed
(cherry picked from commit 9718f18471f700b271eb898c764e02b7fcd3766f)