PIC16xxx has no LAT, and the problem is touching the TRIS-Register (read-modify-write) while the hardware does it too.