Added a cooldown to wlRegisterUnit which limits the number of calls to wlGetLocation() and wlGetCurrentMapAreaID()