kernel: Improve the activation context stubs.