Fix MAP accept threads sometimes spinning endlessly.

Randomly (under no obvious precondition), the MAP access threads spinned
endlessly after enabling BT, because mServerSocket.accept() always threw
IOExceptions, probably because the actual socket was already closed.
This change makes sure to exit the thread when that happens to not waste
CPU cycles and battery power.
This tracks similar changes done to the BluetoothPbapService and makes
sure to follow the (working) PBAP flow.

Change-Id: Iade905f0ea8829cce9666ddaebee7a8fd01f62b0
Added support for Filter parameter for PBAP function PullPhoneBook

VW Premium car kit sometimes behaves strangely if it receives entries with unexpected fields.
E.g. it does not like mail addresses with additional attributes.

Change-Id: I6d3145d802ad87e5fb47217a213f9bcb12670f60
Signed-off-by: Martin Gerczuk <admin@android-rsap.com>
Fix MAP SDP record generation [3/3].

Register MAS server sockets for UUID/port pair instead of only port so
lower layers have the chance to correctly generate the SDP record.

Change-Id: Ia93f79a290aa23b4ad8370096606678c31d12df5