Use mrn::Lock instead of explicit lock/unlock