fix deadlock on error in glx_ctx_ref_glc_hash_table