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