[PATCH 5.2 382/413] resource: fix locking in find_next_iomem_res()