[DL]: Reject the acquire promise if we commit while acquiring.

This patch ensures that we reject the acquire promise if we call commit
before lock acquire finishes. Since we unlock the lock because of the
commit, it makes sense that "acquire" rejects.

R=chrishtr@chromium.org

Bug: 882663
Change-Id: I89a079427c155ba227fcacff083ac0fdf2a38982
Reviewed-on: https://chromium-review.googlesource.com/c/1409608
Reviewed-by: Chris Harrelson <chrishtr@chromium.org>
Commit-Queue: vmpstr <vmpstr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#622557}
5 files changed