spawn: only use the basename as lockname
spawn: better error messages
Merge commit 'HEAD@{1}'
spawn: constify
spawn: avoid slashes in lockname
spawn: avoid empty lockname