core: Add commented debug helper to posix-io.c.