If you are trying to multiplex the GPIO, the why don't you add a multiplexer or a bidirectional switch? That will completely eliminate your problem.
Or you go with my original suggestion and use the TMP12x which is designed to be used with the SPI.
Thanks,