fixed _prepare_elements_and_states() so that if we have been blocking because another process is doing the prepare, once the other process is done we do not immediately prepare again
fixed _prepare_elements_and_states() so that if we have been blocking because another process is doing the prepare, once the other process is done we do not immediately prepare again

wtsi-hgi/vr-pipe,wtsi-hgi/vr-pipe