Adding Mutex for isScanComplete variable in serialCommunication

This will prevent tearing if the accessor attempts to access this variable while it is being set or vice versa.

Also removed an unwanted */