[PTM CC] added lock file wrapper.