It will be useful to us in other repos where we have the use case of having gnatsd be given port 0, but needing to query what port it actually got.

I added it to the bottom where some other test helpers were, but the existing helpers were for gnatsd own tests, while this is useful for other tests that use gnatsd.