Fix Task#value possibly waking up spuriously