gh-537: segfault on box.cfg{}

Extract the non-failing parts of the original patch by Roman.
Make an attempt at finding why coeio_custom is crashing when
replication_source is changed quickly - no success yet.