Fixed file lock canceling