How Babar Azam raced against time for his first Test century on home soil