Allow different locking methods for read & write.