Added barriers needed prior to doing scalar reset for rank-k updates.