Use OnceLock rather than Once.

This avoids the need for a mutable static, and most of the unsafety.

Bug: 290018030
Test: m rust
Change-Id: Ib9a1af0c74f1620db340ee4abdbfb5e6ad9752a7
1 file changed