Fixes an issue where memory is freed incorrectly after closing a connection on OS X.
Improves the timeout mechanism that is used for getting the Bluetooth service records on a remote device on OS X.