Import read/write lock from Strata.

Closes #7.