initialized packet pointer in locking queue dequeue function