Lateral gate dynamics of the bacterial translocon during cotranslational membrane protein insertion