actuall, since 17.3 i can do just that by: safari > youtube > fullscreen playback > power button > power button (yes, again) > play from lockscreen
but, yes, i must have misunderstood your requirements. the steps let me have the video running while the device is locked (for music, voice, etc). this was always possible in some way or another, but since the last patch it works out of the box.