Bristol-Myers Squibb is to buy US biotech Padlock Therapeutics, which aims to create treatments for serious autoimmune diseases, in a deal worth up to $600 million.