Fixes at least 2 subtests in wpt/device-memory. (cherry picked from commit 69f11fc1c657603b189015fd620f96e32adfb9fd)