Support read/write locking.