Checking a file isn't locked the old school way