Cheaply-made read-write lock system