// Scheduling helpers. Sched must be locked.
static void gput(G*); // put/get on ghead/gtail
in the uncontended case,
* as fast as spin locks (just a few user-level instructions),
* but on the contention path they sleep in the kernel.
* a zeroed Lock is unlocked (no need to initialize each lock).