priv: avoid to leak generic socket

Due to previous commit, a socket was requested for each operation
needing it but it was not released.