BREAKING: you must lock a window before closing it

previously there was no good way to make a window context current so
that the GL resources could be freed, and this was leading to a
corruption bug in Ableton on OSX.

now, you must rtb_window_lock() before you rtb_window_close().