Cabrera, Martinez and Torii Hunter started the inning with consecutive hits, and Cabrera scored on Hunter's double. Alex Avila drove Martinez home with a single, and Hunter scored when Don Kelly hit into a fielder's choice.
Locke (4-3) was responsible for four runs, eight hits and four walks in five-plus innings.
Tigers: Detroit placed RHP Joakim Soria on the 15-day disabled list with a left oblique strain, retroactive to Sunday.
Pirates: Pittsburgh placed CF Andrew McCutchen on the 15-day disabled list because of a broken rib. The move is retroactive to Aug. 4. ... 2B Neil Walker (back) was out of the starting lineup for the sixth straight game. ... RHP Gerrit Cole returned to Pittsburgh after making his third rehab start Sunday. He has been on the DL since July 5 with a strained right lat. There is still no timetable for his return to action.
Tigers: LHP Robby Ray (1-1, 4.70 ERA) will be recalled from Triple-A Toledo to start on Tuesday in Detroit's second of two games in Pittsburgh. In one start this season against Minnesota on May 11, Ray pitched six shutout innings.
Pirates: RHP Edinson Volquez (9-7, 3.70 ERA) starts for the Pirates after allowing one hit in seven shutout innings against Miami on Thursday. Volquez hasn't fared well against Detroit in two career starts, allowing eight runs in 9 2-3 innings.
In addition to Soria's placement on the disabled list, the Tigers optioned left-handed relievers Patrick McCoy and Blaine Hardy to Triple-A Toledo. Taking their places are RHP Justin Miller and LHP Ian Krol.
The Tigers also purchased the contract of RHP Kevin Whelan from Toledo and unconditionally released LHP Casey Crosby.
Detroit's relievers have compiled a 4.38 ERA this season, the fifth-worst in the majors.
In the starting rotation, RHP Rick Porcello's start has been pushed pack to Friday. Detroit will start RHP Buck Farmer on Wednesday and RHP Max Scherzer is slated to start Thursday.