Replace a mySQL call to create an UUID, by a php function doing the same
Fixed a small bug in the lock provider