Fix max transports

Some fixes to how the MAX_TRANSPORTS limit is used in pbc_transport. Check out the commit messages for more details.