Add a finalizer for ZMQ.Context.t, calling ZMQ.Context.terminate.