xlocalize: Remove debug output, fix race condition