As mentioned, Charging-only while locked means your phone will only charge while locked, and no data transfer will be allowed.
Personally, I feel like this term's use case could be specified for simplicity. Something that would specify data lines will be blocked would make more sense in my opinion, or it could be added under the option's description.
I'm open to ideas.