Allow locks to be inlined

refs #7622