C: new-cog fix static logic with shared_hek

Warning: not obvious and-logic with
  $static = $B::C::const_strings and ($sv->FLAGS & SVf_READONLY) and !$shared_hek
  which ignores $shared_hek and sets $static to 1

Fixes -O3 regressions 42,43,74,200.
Remaining regression: 125