[Bug 1162365] if the lock does not use lock elision pthread_mutex_destroy will fail