The mayor has approached media figures to assess whether their publications would endorse an effort to overturn New York’s term limits, which could allow him to run for re-election.