The design and performance of the XL-Calibur anticoincidence shield