Function pin

fn pin() -> Guard

Pins the current thread.