Changed lockingQueue to return a pointer to a packet instead of an actual packet so we can use free() to get rid of memory