lib/bitmap: don't call __bitmap_weight() in kernel code