js_DestroyContext acquires the GC lock before printing types, but we need to release it sooner to prevent a deadlock. JS_ClearAllWatchPoints can allocate shapes, needs the lock etc.
This is causing "make check" failures.
Created attachment 534059 [details] [diff] [review]
Hopefully this is enough to fix |make check|.