Commit record primary key does not equal to commit_id in case of commits
with co-authors. Thus can't be found in release index.
Also moves update of releases for records to second pass after merge_date is
updated.
Change-Id: I96e0bb41832486921368d510c5e785f5b1d655d3
Signed-off-by: Andrii Ostapenko <aostapenko@stackalytics.io>