Make mail deletion synchronous to avoid race condition