Rearrangement in the Synthesis of Annulated Lactams Starting from Benzothiazines