[bcl] Fix a few hardcoded socket ports in tests (#5471)