Update wait queues

- Define a typedef for wait queues
- Add a call for dynamic initialization
- Update the docs

Signed-off-by: Vladislav Levenetz <octal.s@gmail.com>