Virtual Redundancy and Barrier Functions for Collision Avoidance in Robotic Manufacturing