When running in single-process mode wait for the render thread to stop before shutting down the context (issue #570).

git-svn-id: http://chromiumembedded.googlecode.com/svn/trunk@1078 5089003a-bbd8-11dd-ad1f-f1f9622dbc98