nine/device: fix getters, to not unref random memory