Apple has apologized to iPhone customers whose phones were disabled after third-party repairs, and issued a fix for the problem.…