Masood and Imam raced to a 95-run partnership by tea, bringing down Pakistan's deficit to 215