[Git][ghc/ghc][master] base: Define Semigroup and Monoid instances for lazy ST