Modify call to CreateFile to obtain handles even for locked files.