To portray the hero of the Thai cave rescue in the new film Thirteen Lives, the Hollywood star had to go deep—literally.