a deadlock between I/O and SQL threads in replication when relay_log_space is too small. This fixes bug #79.