removed useless locking from file class