LIMA, Peru — President Joe Biden and his Chinese counterpart, Xi Jinping, on Saturday met here for a final time during Biden’s presidency, exchanging pleasantries amid rising tensions and appearing to aim their messages not as much at one another as at someone not in the room: President-elect Donald Trump.