model: set thread state during 'swap' calls