Gate controlled resonant widths in double-bend waveguides: bound states in the continuum