Fix compilation error under MinGW in KillLockHolder