p_stats is written with the input item lock (by the input thread). Thus the input item lock is necessary to read and dereference p_stats.