Fix checklock(). Add uuid for identification lock owner