Bette Midler wrapped up the American leg of her “Divine Intervention” tour in top form at the Barclays Center in Brooklyn, New York, and, aptly, the show was both a raucous homecoming and a meditation, however deliciously lewd, on the passage of time. Midler launched her career in New York more than four decades ago, but, as she repeatedly pointed out, the cultural landscape has transformed in mind-boggling ways since that time.