Added patch for Stun racing conditions deadlock