Horsham-based Capmark Inc. filed for bankruptcy Sunday, three years after it was spun off by General Motors' finance arm, because its rich Wall Street owners borrowed too much and lent too much to office, mall, hotel and apartment owners on the eve of the real estate collapse