[IPoIB] Fix locking around endpoint LID checks.