Sync timeutils and memorycache from oslo.

Change-Id: Ifd57eac428c28e527a62cfa46f43c710ba5f46e6
Merge "Sync timeutils and memorycache from oslo."