Make unlock compatible with signal handling.
Make unlock compatible with signal handling.

gusevfe/snakemake,pascal-git/snakemake,gusevfe/snakemake,pascal-git/snakemake,gusevfe/snakemake,pascal-git/snakemake,pascal-git/snakemake,gusevfe/snakemake