patch location provider to fix occasional wakelocks.

Adapted from this gerrit patch:

http://review.cyanogenmod.org/#/c/29349/

Change-Id: I3e215929c09199ab2643a64c26d0bf9795a7db45
credit: Albinoman887