The Brooklyn brownstone famous for being the setting for the movie “Moonstruck” was sold this month for nearly $4 million.