Lock debug println