perflib.pyx: syncronized open events and new methods freeze() and defrost()