midi: Use std::optional instead of std::unique_ptr

Since Android R, Parcel provides read/write methods for "@nullable"
values using std::optional.

Bug: 149784838
Test: m
Change-Id: I5c6a87072ced2f2a3a16df374244bb0aff5f9cb3
1 file changed