Locking of magnetic island rotation by static error field