Fix bug caused by race condition in resize

RB=243172
R=dhoa,osumampo,si-dev,sihde,jkristia
A=osumampo,dhoa