SoftHSM-66: Attribute handling when using multiple threads

Returning the attribute from the object was not thread safe.