Fix deopt sequences to patch and revert stack check