[api] fix detection of running release requests when packages exist with the same name as prefix (bnc#811449)