Bluetooth: MAP: Close output stream before closing client session

Body field is not added on the put request if we close the client
session before output stream. Hence add change to close output stream
before client session.

CRs-fixed: 623805

Change-Id: I73bbf06ca9bcceb465e196f58d8d4dda19005861
Automatic translation import

Change-Id: Ib5909ca10706f41bb3d51ba2d5e97752dee3d00b
Bluetooth: Prevent race condition when authorizing

Change-Id: Ic875fd619afea5fd36ce9b2f71a91d2d68dbb578
Automatic translation import

Change-Id: I7281414edb4efe7d60d33050974d25ae3247cbc2
bluetooth: avrcp - Respond to PDU 0x16 correctly

Issue: CYAN-4148
Change-Id: I0509334a05a25068c25ea0ae84eb866804c3bba3
Automatic translation import

Change-Id: If4d4b4efcb0f56669b09c8c9d7d0a2014b0e844c
Automatic translation import

Change-Id: Ie878c63a43bfd3d66f9a5362f7743e2b2bf1ea8c
Merge branch 'cm-11.0' of https://github.com/CyanogenMod/android_packages_apps_Bluetooth into kk44