Expand lock to avoid race in RebuildShard.

@alainjobart 

Lock before reading topo, to prevent another rebuild from writing
fresher data that could then be overwritten with stale data by a slow
rebuild.