1. A method for component lock analysis, the method comprising: associating one or more locks selected from a group of locks configured for use by an operating system with a component of the operating system, the locks individually comprising locking code; initiating lock tracing for the component; and in response to initiating lock tracing, instrumenting the component-associated locks with lock tracing program instructions to obtain lock statistics for the component-associated locks.