locking: remove any lock files when dying

This fixes https://savannah.gnu.org/bugs/?48675.
1 file changed