The Lakers took the lead with three minutes left, but Detroit locked down defensively the rest of the way.