Power Pulse

I think what you need would be a one shot relay with a time delay function that could trip your latch. Maybe something like F10686-ND That way even with the long input signal you can still have the latch only receive power for a programmed (3 Sec) amount of time.

Here is a post that explains how they function.