Spain's Queen Sofia won't be attending Queen Elizabeth's diamond jubilee celebration on Friday as planned amid a dispute over Gibraltar.