Dive bars have a rich history, but they face an uncertain future with rising costs and changing social patterns.