CRM-17846 Fixing lock name to be less than 64 characters for MySQL 5.7 compatib (#8133)
* Fixing lock name to be less than 64 characters for MySQL 5.7 compatibility
Removing spaces to make Jenkins happy
Updating Lock to keep the name param and add an id to use for the actual lock
Fixing spacing/comment issues
Using lock id instead of when checking if lock used
Changing behaviour when a lock is attempted using an existing name so as to return FALSE and leave the _hasLock FALSE
Revert "Changing behaviour when a lock is attempted using an existing name so as to return FALSE and leave the _hasLock FALSE"
This reverts commit
4fcb4d2f5b161c69a4f86f09ac363e97791f023e.
* CRM-17846 further fix to make lock mechanism work
* CRM-18746 add Code Comments