Fixed a deadlock in Locator.