title: Room does not update all queries properly with coroutines
body: <p>I have 120 records in a table and I want to update all records one by one. Somehow room can not update the whole records. out of 87 records can not be updated although I see log output. (I check the table by exporting to db browser for sqlite as well as getting data through code) </p>
  
  <p>PreferencesActivity</p>
  
  <pre><code>private fun updateSample()  {
    for (x in 1..114) {
      preferencesViewModel.updateRecords(x)
    }
  }
  </code></pre>
  
  <p>viewmodel</p>
  
  <pre><code>fun updateRecords(x: Int) = runBlocking {
    launch(Dispatchers.IO){
      database.surahDataDao().update(x, x, x)
      Log.e("AAAA", "database.preferencesDataDao().update($x, $x, $x)")
    }
  }
  </code></pre>
  
  <p>dao</p>
  
  <pre><code>@Query("Update Preferences Set start = :start, end = :end WHERE Id = :number")
  fun update(start: Int, end: Int, number: Int)
  </code></pre>
  
  <p>some log output from logger</p>
  
  <p>runs on Thread[DefaultDispatcher-worker-1,5,main] -> update(6236, 6231, 114)
  runs on Thread[DefaultDispatcher-worker-3,5,main] -> update(6230, 6226, 113)
  runs on Thread[DefaultDispatcher-worker-3,5,main] -> update(6225, 6222, 112)
  runs on Thread[DefaultDispatcher-worker-3,5,main] -> update(6221, 6217, 111)
  runs on Thread[DefaultDispatcher-worker-6,5,main] -> update(6216, 6214, 110)
  runs on Thread[DefaultDispatcher-worker-3,5,main] -> update(6213, 6208, 109)
  runs on Thread[DefaultDispatcher-worker-6,5,main] -> update(6207, 6205, 108)
  runs on Thread[DefaultDispatcher-worker-4,5,main] -> update(6204, 6198, 107)
  runs on Thread[DefaultDispatcher-worker-1,5,main] -> update(6197, 6194, 106)
  runs on Thread[DefaultDispatcher-worker-1,5,main] -> update(6193, 6189, 105)
  runs on Thread[DefaultDispatcher-worker-6,5,main] -> update(6188, 6180, 104)
  runs on Thread[DefaultDispatcher-worker-5,5,main] -> update(6179, 6177, 103)
  runs on Thread[DefaultDispatcher-worker-5,5,main] -> update(6176, 6169, 102)
  runs on Thread[DefaultDispatcher-worker-2,5,main] -> update(6168, 6158, 101)
  runs on Thread[DefaultDispatcher-worker-2,5,main] -> update(6157, 6147, 100)</p>
  
  <p>.
  .
  .</p>