fill_stat_generic in more places; call sync and close rather than fileca...

...che_release