objectMakeLock function
Returns the associate basic lock
Implementation
BasicLock objectMakeLock(Object monitor) {
// get or create Lock object
var synchronizedLock = cacheLocks[monitor];
if (synchronizedLock == null) {
synchronizedLock = BasicLock();
cacheLocks[monitor] = synchronizedLock;
}
return synchronizedLock;
}