tools lib: Adopt bitmap_intersects() operation from the kernel sources