Add -threaded to .cabal file for sequential executable build.

It seems weird that we need this to build the sequential version, but
they both use atomic-primops, so I guess we do.  (There's a link-time
error otherwise.)