Test unleash permissions at timer expiry

Timer script was removing unleash request from timers when wearer was releashed.  Removed clearing g_iUnleash at leash change, and added a permission check at timer expiry.