supplicant: simplify linked list implementation

* Simplifies linked list implementation by using queue.h macros
  instead.
* Fixes some theoretical memory leaks