tests: Fix race in test beginning

Sometimes automatic tests were failing because writing data started before
every chunkserver has registered its space in master server. This commit
introduces a binary which can check how many chunkservers are ready to work,
and makes a good use of it.