fix: threadlocal current_io_endpoint for multi-threaded safety