[lib] Synchronize switches and hosts with remote hive when created