Cubase Pro 10.5 - Tempo track issue in flattened arrangements

The tempo track of an arrangement, if locked, is not rendered correctly when the arrangement gets flattened. The issue can be avoided by making sure that the tempo track is not locked.