Does not yet support multithreaded use of the thread pool.
Adding this incomplete work now to ease rebase troubles later as it moves the functions to src/unix/fs.c and introduces src/unix/internal.h.