`mapScratchpad` and `withScratchpad` should take implicit host context