After the “What’s Up” singer spent three decades making other people’s music, an unplanned documentary brought her back to herself