Produces a locator that matches both locators. Implemented through `internal:and` selector. Fixes #19551.