In new projects, the British actor of South Asian descent takes on two parts — James Bond and Hamlet — that have long been defining roles for white actors.