Slightly less hacky sim queue_send(), fixes simulator crashes FS#7051 and FS#7245.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14113 a1c6a512-1295-4272-9138-f99709370657
diff --git a/uisimulator/sdl/kernel.c b/uisimulator/sdl/kernel.c
index 98d509f..b2bf770 100644
--- a/uisimulator/sdl/kernel.c
+++ b/uisimulator/sdl/kernel.c
@@ -191,7 +191,7 @@
     if(q->send)
     {
         struct thread_entry **spp = &q->send->senders[wr];
-        struct thread_entry sender;
+        static struct thread_entry sender;
 
         if(*spp)
         {