lpcmanager

Many small fixes. Mostly typos and forgotten things while splitting LPCManager.py. Reached a point where LPCManager starts again when launched from batch script. Matches with beremiz changeset 7e6b03251bfe.
LockMBRTUBuffer();
#ifdef ONBOARD_I2C
if(onboardbusfd!=-1)
rt_dev_ioctl(onboardbusfd, RTSMT_ONBOARD_RTIOC_READ, &onBoardReadBuf);
#endif /* ONBOARD_I2C */
%(retrieve_code)s