fixed ostreamlock reference