mds/Locker: fix null deref on cap import

The session Connection* may be NULL.

Fixes: #7708
Signed-off-by: Sage Weil <sage@inktank.com>
Merge pull request #1496 from ceph/wip-7708

mds/Locker: fix null deref on cap import