Resource-sharing boosts robotic resilience