Switch from commit() to apply().

Since we don't care about the returned value from commit(),
it makes more sense to use apply() as that will make the disk
writing asynchronous and allow us to progress faster.

Bug: 190713331
Change-Id: I13a5492de05164f1d0d5544b83a0d4db8c952f1e
Test: N/A
1 file changed