Implement rmlock and sxlock directly using the uhi rwlock API instead
of reusing the rwlock implementation, as reusing the rwlock
implementation gets in the way of WITNESS support.