The LOCKLPM5 bit was not cleared in the slave code which means that the GPIO pins were not unlocked, therefore preventing proper operation of P1.3 and P1.2 in I2C mode.
The line:
PM5CTL0 &= ~LOCKLPM5
clears the LOCKLPM5 bit and unlocks the GPIO pins on the MCU.