Make digest() in EntityCapsManager synchronized

Fixes SMACK-617