[runtime] Cleanup the horrible ifdef hell that is the stack bounds discovery code.

This split a single chunk of intractable ifdef hell into a beautiful set of per-target
files.

This will allow us to actually figure out what's going on on each target.
[utils] Add android extension point to threading.