Make LockedOutputStream a non-internal class