use_file: Use std::fs::File instead of libc and once_cell::sync::OnceCell instead of pthreads mutex
#481
+60
−132