Hi! In r3106, I've commited my current work on threading implementation. It's just a beginning. It still needs a lot of work to do, but you can check this out, comment the changes or help with development. Here's a description about current status:
http://trac.roundcube.net/browser/branches/devel-threads/THREADS