coopth: move int.c to ctx handlers with tid