Add sleep during adding multiple reference-snaks

needed because anakvalue input-box will appear delayed because of deferred
promise. Sleep should be replaced by something more robust, e.g. a
conditional wait.