Better coverage of *fd* functions
Clean up

The clone_struct_passwd() and clone_struct_group() static functions
should to be conditionally compiled.