Take a look on the code used by translatable entities to increase the locale field length ;)