freezer: fix a race during freezing of TASK_STOPPED tasks