You don't have to lock your phone. It doesn't matter if your phone is locked or if your phone is unlocked and you're in the Passbook app. When you put your phone near the NFC terminal, Apple Pay will come up, regardless of the current state of your phone.