add extra debug helpers to remove lockfiles, WIP on #230