Added locks in CorporationKey, CharacterKey and ApiKey for thread safety.