fix #10590 libgimp: resource choosers using freed proxy
Testing with Fractal Explorer. Testing depends on !1125 (merged) first merged.
I left debug statements in for testing during review.
Can remove before merge, but this is such a deep change that it might be useful to have debug for a while.