switch: set pending set flag before starting the command thread