backport from trunk (rev #9793):
- fixed bug in marking as used (in a LB failover scenario) the destinations with IDs bigger than 8.
  Thanks to Seth Schultz for reporting and help with troubleshooting