Stub DefaultContext in poll_shared tests for isolation