Factor out fd handling in lofs
Add setattr on fd support and add chown support to lofs

Also tests for those features have been added.
The test suite now modulates its euid to/from root to check ownership semantics.