Add fake socket with garbage collection methods for PyPy compatibility.