Prototype for a template version of bqt::scoped_lock