Create serialPortMutex lazily. This has caused some weird issue where debug() freezes the code