Fixed typo FILE -> File, changed file reading from LOCK_EX to LOCK_SH