Add synchronization for rendering to studio xblock tests

@andy-armstrong 
@cpennington