SERVER-14581 add lockstate to cpuprofiler.cpp