Fix: Fixed invalid locking.

* listensocket_get_listener() must always be called with a matching call
  to listensocket_release_listener
* No ticket for this, but may be related to #2372.
* Found an reported by Xogium on IRC.

See: #2372
1 job for master in 53 seconds (queued for 3 seconds)
Status Job ID Name Coverage
  Build
passed #7637
docker alpine
build

00:00:53