Sunderland edging Ipswich in race to sign Bournemouth defender