Remove the use of the pthread_tryjoin_np which is currently unimplemented on many platforms