Broke out the linux dir sync code into a dir handle cache activated by new option FastDirectoryEnumerate.

Replaced truncate() toy implementation with a proper version.

Improved debug printing, as ASIO is currently crashing out.