test__makefile_ref.py
test__makefile_ref.py: close listeners
corecffi.py: temporarily restore refcount dict
fix socket refs