WifiLockManager: Fix event ordering for full Wifi locks.

Log the acquire before the release to avoid "holes" in the
collected data due to an acquire event immediately after a
release event in the case where the new and old workSource
have one or more attribution UIDs in common between them.
BatteryStats can correctly match "nested" acquire / release
pairs.

Test: WifiLockManagerTest
Bug: 62390666

Change-Id: I13f2f112be96e23cdcbf270b3b0fa4a0077b9ba4
2 files changed