BibUpload: factor out step 6

* Move out the job end dates updating in a separate function
  to be able to call it in tests.
BibIndex: test concurrent bibupload and bibindex