memory: add return value to address_space_rw/read/write