HDFS-6995. Block should be placed in the client's 'rack-local' node if 'client-local' node is not available (vinayakumarb)

(cherry picked from commit ed841dd9a96e54cb84d9cae5507e47ff1c8cdf6e)