Fix a bug in the rwlock tracking. ast_rwlock_unlock did not take into