setup/dirs et al.: thread-safe promises

Use `delay/sync` instead of `delay`.
ffi/unsafe: correct and improve docs on `_cpointer`