Wait for shader to build before configuring it, and wait for the shader to build before sharing it with other contexts.