[PATCH v3 05/13] loader: Generalise is_addr_reserved to find overlapping address ranges.