Backport of #131 locator's refresh method patch from v0.11

@andrusha97, please look at diff of `src/service/locator.cpp` as it's been changed since v0.11.