added concurrent lock on file object