In Phil Lord and Christopher Miller’s adaptation of Andy Weir’s novel, Ryan Gosling’s star power fuels an unlikely tale of far-flung friendship.