* Fix unlocked accesses to feature_list.  The feature_list is now also
protected by the features_lock.

* Made all calls to ast_find_call_feature() have the features_lock held.

* Fixed set_config_flags() to actually use find_group() to look for
feature groups in DYNAMIC_FEATURES.  The code originally assumed all
feature groups were listed in DYNAMIC_FEATURES.

* Make everyone use ast_rdlock_call_features(),
ast_unlock_call_features(), and new ast_wrlock_call_features() instead of
directly calling the rwlock API on features_lock.


git-svn-id: http://svn.asterisk.org/svn/asterisk/trunk@385277 f38db490-d61c-443f-a65b-d21fe96a405b
Eliminated dial_features_destroy() since it is equivalent to ast_free_ptr()

git-svn-id: http://svn.asterisk.org/svn/asterisk/trunk@385278 f38db490-d61c-443f-a65b-d21fe96a405b