Char: moxa, fix locking in moxa_write