lib: consolidate lazyErrmapGet()
There are currently two implementations of this function. This commit removes the redundancy, and removes "lazy" from the name.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines