performance: Add Performance class and PerfLock API.

New Performance class with PerfLock APIs to allow
system level performance optimizations to be toggled.

Credit Vince Leung