Company procedures has it that setting the parking brake while on the runway is allowed in all conditions but one; if the runway is contaminated with ice.
Reason: A couple of years ago a crew took off from an ice covered runway with the parking brake set. They did not realize this mistake during takeoff, as the acceleration appeared to be 'normal'. However, they found out when landing at the destination... Or so I was told.