Zero-energy pinning of topologically trivial bound states in multiband semiconductor-superconductor nanowires