Fix issue where multiple scripts running on the same group could overwri...

...te the binaries table "currentparts" count causing long release creation time because of invalid count.