Fix bugs in FileClass

[FileClass](https://github.com/fuel/core/blob/1.6/develop/classes/file.php) does not work if it is used with lock.
I think the problem is  'open_file()' & 'close_file()' , so I modified these functions.
Please confirm.