My 05 forester does this. Did my head in at first, then i Discovered that when you turn the key in the ignition, stop when the dash lights come on, then press the unlock button on the key. A click can be heard then crank it over.
no need to lock/unlock and is second nature now.
Does that make sense?!