remoteproc: imx_rproc: fix a couple off by one bugs