`rethinkdb restore`: index_wait before inserting data
`rethinkdb restore`: index_wait before inserting data

Fixes #4832.

niieani/rethinkdb,pap/rethinkdb,eliangidoni/rethinkdb,jmptrader/rethinkdb,catroot/rethinkdb,eliangidoni/rethinkdb,bpradipt/rethinkdb,gavioto/rethinkdb,catroot/rethinkdb,elkingtonmcb/rethinkdb,Qinusty/rethinkdb,elkingtonmcb/rethinkdb,tempbottle/rethinkdb,mbroadst/rethinkdb,JackieXie168/rethinkdb,jmptrader/rethinkdb,KSanthanam/rethinkdb,mcanthony/rethinkdb,AntouanK/rethinkdb,bchavez/rethinkdb,pap/rethinkdb,pap/rethinkdb,KSanthanam/rethinkdb,gavioto/rethinkdb,4talesa/rethinkdb,4talesa/rethinkdb,KSanthanam/rethinkdb,eliangidoni/rethinkdb,bpradipt/rethinkdb,AntouanK/rethinkdb,pap/rethinkdb,AntouanK/rethinkdb,mcanthony/rethinkdb,AntouanK/rethinkdb,grandquista/rethinkdb,gavioto/rethinkdb,mcanthony/rethinkdb,victorbriz/rethinkdb,robertjpayne/rethinkdb,bpradipt/rethinkdb,bchavez/rethinkdb,bchavez/rethinkdb,victorbriz/rethinkdb,gavioto/rethinkdb,elkingtonmcb/rethinkdb,elkingtonmcb/rethinkdb,tempbottle/rethinkdb,bchavez/rethinkdb,niieani/rethinkdb,jmptrader/rethinkdb,catroot/rethinkdb,grandquista/rethinkdb,robertjpayne/rethinkdb,mbroadst/rethinkdb,grandquista/rethinkdb,elkingtonmcb/rethinkdb,jmptrader/rethinkdb,jmptrader/rethinkdb,tempbottle/rethinkdb,niieani/rethinkdb,tempbottle/rethinkdb,catroot/rethinkdb,bpradipt/rethinkdb,grandquista/rethinkdb,mbroadst/rethinkdb,JackieXie168/rethinkdb,gavioto/rethinkdb,bchavez/rethinkdb,victorbriz/rethinkdb,bpradipt/rethinkdb,mcanthony/rethinkdb,gavioto/rethinkdb,jmptrader/rethinkdb,catroot/rethinkdb,catroot/rethinkdb,AntouanK/rethinkdb,niieani/rethinkdb,Qinusty/rethinkdb,grandquista/rethinkdb,catroot/rethinkdb,jmptrader/rethinkdb,bpradipt/rethinkdb,bchavez/rethinkdb,robertjpayne/rethinkdb,grandquista/rethinkdb,pap/rethinkdb,jmptrader/rethinkdb,victorbriz/rethinkdb,robertjpayne/rethinkdb,robertjpayne/rethinkdb,mcanthony/rethinkdb,4talesa/rethinkdb,pap/rethinkdb,tempbottle/rethinkdb,AntouanK/rethinkdb,eliangidoni/rethinkdb,KSanthanam/rethinkdb,Qinusty/rethinkdb,pap/rethinkdb,JackieXie168/rethinkdb,mcanthony/rethinkdb,dparnell/rethinkdb,niieani/rethinkdb,JackieXie168/rethinkdb,dparnell/rethinkdb,JackieXie168/rethinkdb,dparnell/rethinkdb,KSanthanam/rethinkdb,mcanthony/rethinkdb,bpradipt/rethinkdb,gavioto/rethinkdb,victorbriz/rethinkdb,4talesa/rethinkdb,elkingtonmcb/rethinkdb,robertjpayne/rethinkdb,mbroadst/rethinkdb,niieani/rethinkdb,grandquista/rethinkdb,robertjpayne/rethinkdb,4talesa/rethinkdb,4talesa/rethinkdb,victorbriz/rethinkdb,Qinusty/rethinkdb,grandquista/rethinkdb,AntouanK/rethinkdb,robertjpayne/rethinkdb,dparnell/rethinkdb,mcanthony/rethinkdb,niieani/rethinkdb,AntouanK/rethinkdb,elkingtonmcb/rethinkdb,eliangidoni/rethinkdb,elkingtonmcb/rethinkdb,dparnell/rethinkdb,tempbottle/rethinkdb,eliangidoni/rethinkdb,tempbottle/rethinkdb,niieani/rethinkdb,4talesa/rethinkdb,dparnell/rethinkdb,eliangidoni/rethinkdb,eliangidoni/rethinkdb,dparnell/rethinkdb,JackieXie168/rethinkdb,Qinusty/rethinkdb,bpradipt/rethinkdb,eliangidoni/rethinkdb,pap/rethinkdb,mbroadst/rethinkdb,victorbriz/rethinkdb,JackieXie168/rethinkdb,Qinusty/rethinkdb,JackieXie168/rethinkdb,4talesa/rethinkdb,catroot/rethinkdb,KSanthanam/rethinkdb,dparnell/rethinkdb,mbroadst/rethinkdb,bchavez/rethinkdb,mbroadst/rethinkdb,Qinusty/rethinkdb,mbroadst/rethinkdb,Qinusty/rethinkdb,tempbottle/rethinkdb,bchavez/rethinkdb,JackieXie168/rethinkdb,bchavez/rethinkdb,dparnell/rethinkdb,Qinusty/rethinkdb,KSanthanam/rethinkdb,KSanthanam/rethinkdb,robertjpayne/rethinkdb,gavioto/rethinkdb,victorbriz/rethinkdb,mbroadst/rethinkdb,bpradipt/rethinkdb,grandquista/rethinkdb