I just bought a nokia 8 TA-1052, I have the same problem. In Sept/Oct patch I cannot get the official unlock code.
If you have solution, please update, thanks a lot!
Or without unlocking the bootloader, is there any other way to root? I cannot live with an unrooted android phone...:(