MannKind 2Q loss narrows on year-ago payment