srdb1: fix memory leak in db-id
- When getting an existing connection from the pool, free the newly
created db-id as the pool connection already has a reference to the
existing one. Fixes FS#436
(cherry picked from commit 69de17d3bb1d032f9a41752362194d718336e20d)
(cherry picked from commit 94ebfb5d5973ed59de84ca0e0c87052b4c80f9de)