When I had a 2006 Allez Triple, I could ride hands free like it was my special talent. I then sold that and had a 2009 Sirrus, could NOT ride hands free at all. Mountain bikes I don't know if I can either.
I think a lot has to do with your CORE strength, as well as frame geometry. Core strength is essential to balance