New Mexico’s governor and the district attorney for the largest county in the state are working to convince lawmakers to change the way pretrial detention hearings work by saying they want to balance the rights of people accused of crimes with their impression about public safety.