socket->isPersistent() returns FALSE after transient()

also fix the bug that php crashs if call transient()
more than on a given socket.