Joint resummation for pion wave function and pion transition form factor