commonLockFcts.sh lock acquisition atomic

functions in commonLockFcts.sh reworked.
A lock is now a folder instead of a file.
This allows to make the lock acquisition atomic (preventing race
conditions in case 2 scripts try to acquire the same lock at the same
time

Functions in commonLockFcts.sh renamed