[entropy.locks] move acquire_lock(), release_lock() from entropy.tools