Fix: For Windows flock and truncate bugs.