Add rwlock_lock() and rwlock_unlock()