A growing share of Americans are factoring future inheritances into their retirement plans, but experts say that's a gamble that may not pay off.