iocp: change to pure c lang impl and single-threaded model