We're bringing back asynchronous logging to avoid deadlocks.

Revert "Just remove log_flush(), it shouldn't be used anymore"

This reverts commit 00ce65b85c06a503a39194340e9b1f21493f82c7.

Conflicts:
	hook_process.c
Add a timeGetTime hook to maintain a consistent view of time with available APIs (since timeGetTime can optionally pull directly from KUSER_SHARED_DATA)