common: buffer::ptr::cmp() is a const function

Signed-off-by: David Zafman <david.zafman@inktank.com>
Fix be_scan_list()
Fix be_compare_scrub_objects()