Fix bug #591676 (MSG_QUEUED lost on restart)