Add n_waitinglist counter decrements when freeing struct waitinglist.

Fixes: #1261