make GetFileSecurity/LockFile/UnLockFile work