File locks cleaned up and part of file utilities