Actor David Thewlis has signed on to play Olivia Colman's onscreen husband in a limited TV series based on a real-life murder mystery.