A relieved Stephen Maguire withstood a barrage from Belgian prodigy Luca Brecel to reach the third round of the UK Championship.