Open /dev/mem O_RDONLY instead of O_RDRW.

While it isn't being written to with the current code, better safe than
sorry.