The Neville Longbottom actor is playing a Church of England rector in the TV adaptation of Reverend Richard Coles’s novel. He talks to Tom Murray about theology, being a ‘dyed-in-the-wool’ atheist, and whether he would ever work with JK Rowling again