Only return from wait_for_chainlock when the block is actually processed (#2728)
Only return from wait_for_chainlock when the block is actually processed (#2728)

getblock also returns blocks which are not processed yet or in the middle
of processing.
ionomy/ion,thelazier/dash,nmarley/dash,nmarley/dash,dashpay/dash,nmarley/dash,nmarley/dash,UdjinM6/dash,ionomy/ion,UdjinM6/dash,dashpay/dash,dashpay/dash,ionomy/ion,ionomy/ion,ionomy/ion,thelazier/dash,thelazier/dash,UdjinM6/dash,thelazier/dash,ionomy/ion,thelazier/dash,UdjinM6/dash,nmarley/dash,UdjinM6/dash,nmarley/dash,nmarley/dash,dashpay/dash,dashpay/dash