[entropy.client] fix deadlock when running "equo rescue generate"

_real_logger_lock must be a reentrant lock.
This fixes bug 4624.