As someone already stated above, blocking your sword fixes it virtually instantly. You don't have to block for a lot of time, you just quickly tap your sword and you're good to go. However, if you have an axe or no weapon... you can try using a bow maybe? Sneaking does work too, but not all the time (from what I've experienced, sneaking tends to be slightly less reliable.)
Also, not 100% sure on this but if you get a teammate to punch you and do the Ghost Fix command once or twice (/gf also works) your location data updates and you should be fixed. That is, if you have spare time. And a teammate.