mutex fixes and performance metrics

still not sure which performance metrics we want