[TASK] Add a generic lock class (Revision 1)


Revision-Id: 85045b720158c243daf6aaf83ee416b01f8d6318