Previously, we'd mocked out UpdateSemanticsEnabled using a simple lambda. Due to the embedder API's C ABI, we were unable to make use of lambda captures. This patch instead uses MOCK_ENGINE_PROC so we can make the test variable a local and rely on lambda capture. Issue: https://github.com/flutter/flutter/issues/77838