split out into nap.h; fix nonsense in pbar comparison

Blame GCC for making me give more fucks.

Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>