Wait for new time_t before updating AES key file

This is a mitigation for issue 8263, wherein the master
experiences a communications failure when multiple
key updates happen in one second.  We reduce the chance
of this by checking time() against the mtime of the file
and waiting until they are not equal.