Fixed packm variants 3 and 4 where every thread was trying to manipulate the same state

Now just performed by the master thread.