Output legacy locators for TestBench Recorder (#14102).

This fixes a regression in Recorder.

Change-Id: I3c9d5939d3f1b41bd5ea8d80acbbb017b6baa062