Fix high current drain issue

The log shows the cause of the high current drain was many wakelock
were acquired by RILJ, and were not released until the hardware was
power cycled.
So, the fix is: added mutex protection around accesses of a global
variable to count instances of a wake lock.

Change-Id: I2df952417082c78f922edb3373df61c9f2843f44