HDFS-4651: port special alwaysUseDelegationTokensForTests flag and re-enable assertions on delegation tokens in TestOfflineImageViewer