Use pthread_mutexattr_setkind_np as a fallback to set a recursive mutex type