b2b_entities: fix proxy authentication
 - credits goes to shimaore (sourceforge id)
 - closes patch 3587231
 - backport from trunk rev: 9572
backport from trunk (rev #9573):
- fixed the calculation of the global average by the _bm_log_timer function.
  Credits go to David Sanders
  Closes patch  #3555236