Pakistan once again finds itself in the middle of a dangerous geopolitical confrontation, and despite the obvious risks and limited room for manoeuvre, it is playing the right role.