Fix array bound failure in api_sr_localsid_add_del