id_pool: buddy allocator for unique id ranges

Signed-off-by: Alex Dubov <oakad@yahoo.com>