Clear all old flags, even if we change the gc mode during the major gc.
Merge pull request #745 from authorNari/clear-old-flag-to-change-gc-mode

Clear all old flags, even if we change the gc mode during the major gc.