minimal lockwatcher version of motion