Update cabal dependency to stm >= 2.4

This is necessary due to the introduction of TQueue (which arrived in stm-2.4) in 96f28d36f34eab8be8d6489417ad8fed38097584