performance: Add concurrency and timer support to PerfLock.

Add timer and concurrency support to PerfLock APIs.
Update optimization codes.
Removed cpuBoost API.
Add setCpuBoost API.

Change-Id: Id81695153c7ba2d76c4fc8c95e2b1bead65c90e2
(cherry picked from commit 56075d7c45cf303f69029f5ebac0af325b6f5d60)
(cherry picked from commit 92b8200f692d4a533c61a02ba419a2d1de0c7f6d)
(cherry picked from commit fe5090b53f1e2d07e25cf536dee1ec07d18868eb)