I would prefer it on the lock screen. (I can’t think of any credible privacy or security issues with that but obviously it means that the information is available to an unauthenticated user.)
I would certainly be open to replacing the battery icon in the top bar with XY%
That would have to be the non-default option since it is inherently ambiguous.