GLX contexts are not reference counted, so we must do the reference
counting ourselves, in Rust.