Spawns a new thread.
fn spawn<F>(f: F) -> Result<(), Errno> where F: FnOnce() -> () + Send + 'static,
The closure that will be run in the new thread.