Replaced unnecesary netify_all() with notify().
Corrected indentation.
Modified to notify when locked.
Modified pcbuf::clear() to notify always.