added file locking for all files that may be touched by multiple clients simultaneously