Just checked using the YouTube app, atv3, 4S, iOS 7.1.1.
It worked just fine. I can lock/sleep the phone or let it time out sleep and YouTube continues to play.
I'd first try resetting the iPhone (home + power until you see the Apple logo) and ATV (menu + down until the LED flashes rapidly).