another case like #3803

See also https://github.com/D-Programming-Language/dmd/pull/3803

Don't know how to make a test case for this, as the interaction between the scheduler and code gen is pretty hard to predict.