Capmark, one of the nation's largest commercial-real-estate lenders, filed for bankruptcy protection in Delaware, the latest sign that problems in that market are far from over.