Learning Power Control Protocol for In-Factory 6G Subnetworks