main/claws-mail: fix stdio locking issue