Safe Autonomous Docking Maneuvers for a Floating Platform based on Input Sharing Control Barrier Functions