nvk/mme: Add helpers for masked scratch updates Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30703>