bitmap: fix end condition in bitmap_find_free_region