Declassified British government files reveal fraught negotiations with China before the 1984 agreement and fears that the talks would collapse amid undiplomatic language from both sides.