The living arrangements, known as “dorms for adults,” are on the upswing after declining in the pandemic, and developers are adapting to the renewed interest.