Add glob and globfree to wire_io

This required some handling of the pointer to function argument and the
void return value of globfree.
Move wakeup_fd_listener to submit_request