Fix possible NPE in MonitoringGuacamoleReader read() and readInstruction().
Synchronize on getContents() as well, for sake of consistency and predictability.