How the row over junior doctors contracts threatens an already fragile and underfunded NHS