'Releases the GIL, corresponds to `put_ensure_gil`.'

def put_release_ensured_gil(self, variable=None):

    if self.globalstate.directives['fast_gil']:
        self.globalstate.use_utility_code(UtilityCode.load_cached('FastGil', 'ModuleSetupCode.c'))
    else:
        self.globalstate.use_utility_code(UtilityCode.load_cached('NoFastGil', 'ModuleSetupCode.c'))
    if (not variable):
        variable = '__pyx_gilstate_save'
    self.putln('#ifdef    WITH_THREAD')
    self.putln(('__Pyx_PyGILState_Release(%s);' % variable))
    self.putln('#endif')
