<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_all_locators(self):
 """ Gets locators for all registered component references in this reference map. :return: a list with component locators. """

        locators = []

        self._lock.acquire()
        try:
            for reference in self._references:
                locators.append(reference.get_locator())
        finally:
            self._lock.release()

        return locators