Mutex read/write lock for levelup.