refs #3875 Calling process_attribute

When we call process_attribute, it does all the checks for ensuring that
dynamic attributes are allowed.

This impacts the :counter_cache option as it requires dynamic fields.
When using the counter_cache, the model must include
Mongoid::Attributes::Dynamic