[PATCH 3/6] rust: sync: make doctests compilable/testable