proc lock recursion fixes for log functions