Fixed build issues related to sync getting merged into std

...and instantiate it with `Mutex::new(0)`