mesh: Restrict scope of variables in health_get_registered()
mesh: Restrict scope of variables in health_get_registered()

Don't declare the variables in a wider scope than what they're needed
for.

X-Original-Commit: d6d110fb22980f0b64329e0d7af30edf48bff203

apache/mynewt-nimble,apache/mynewt-nimble,apache/mynewt-nimble,apache/mynewt-nimble,apache/mynewt-nimble