system: add IsSafe for freebsd
system: add SafeTempDir for freebsd
system: remove freebsd getfsstat workaround