In this reaction taken from Snyder's total syntheses of Coccinellid alkaloids,1 how does the Boc deprotection lead to ring closure? I understand that the $\ce{PBr3}$ step simply converts the alcohol to a bromide.
- Sherwood, T. C.; Trotta, A. H.; Snyder, S. A. A strategy for complex dimer formation when biomimicry fails: total synthesis of ten coccinellid alkaloids. J. Am. Chem. Soc. 2014, 136 (27), 9743–9753. DOI: 10.1021/ja5045852.