Lagrangian subbundles of symplectic bundles over a curve