CharsetConverter: fix wrong locking of mutex