pthread_tryjoin_np instead of pthread_kill for checking if gstreamer thread alive