histogram: fix histogram::get_position_micro overflow

* Assert if the cumulated values are > UINT_MAX
* Use floating point division instead of integer multiplications to
  avoid overflow

Signed-off-by: Loic Dachary <loic@dachary.org>