Fix race condition when updating branches