fixing race condition when initializing a subset of slaves