Sorry about the delay. This circuit will do the trick of preventing a problem if your uC locks up while multiplexing.
Note that this circuit inverts the logic signal.
As the input transitions from low to high, Diode D1 conducts and the output goes low immediately, and stays low.
As the input transitions from high to low, the output goes high immediate, but only remains high until R1 charges C1 enough that the output goes low again.
The RC delay should be longer than your normal column interval, perhaps by an order of magnitude. Try to keep C1 small (0.1uF is probably a sensible upper limit).
This circuit will introduce a slight delay (as well as the inversion of the signal) so you will need to allow for this in the programming of the uC to both get the correct display and to avoid ghosting.
If you need to limit the time the output is low (instead of high as in this circuit) connect the resistor between the input of U1 and ground, and reverse the diode.
U1 is 1/6 40106 or similar. D1 is any small signal diode (e.g. 1N4148).