Refactor PP2 charsets handling, use pazpar2_mutex.