Local frustration determines loop opening in protein-protein association