base_local_planner: adds waitForTransform

The first waitfor is necessary for fixing the timing problem when planning.

I added the second waitfor to avoid similar problems in other situations (which however, I haven't run into yet).