Added tryUnlock for rwlock