[SQL] Synchronize on a lock when using scala reflection inside data type objects.