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

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