Sync gettextutils from oslo

This change brings in new functionality from gettextutils
needed for supporting delayed message translation in
Ceilometer.

Partially implements bp user-locale-api

Change-Id: I541a3fdcef713f9c3b08dd96f78553e7c092162d