main.c: Fix clint warnings
Use stdbool: no_wait_return

A few other seldom used variables which are set to no_wait_return's
values have also been converted to bools.