Lawyers for Britney Spears and Jamie Spears are in talks to end their contentious legal battle ... sources with direct knowledge on both sides tell TMZ. Our sources tell TMZ ... Britney's attorney, Mathew Rosengart, has reached out to both Jamie's…