Fix compat_fn option method on miri This change is required to make `WaitOnAddress` work with rust-lang/miri#2231