await/awaits fixes + misc

1. fix awaits(): queue updates weren't properly synchronized
2. fix test.await: test would allow races on startup, leading to false negatives
3. fix log*() intrinsics: were unescaping incorrectly in some cases
4. misc comment hygiene