sessionlock: add methods to lock and unlock sessions
We use a special key here, to make the lock specific to the currently running environment. Someone could for example use an env-var to set a lock key. With that information the distinction between different pipeline runs becomes possible
See README for final decisions about how locking works...
Fixes #74 (closed)
Edited by Alberto Pianon