[PATCH OLK-6.6] ipc: limit next_id allocation to the valid ID range