Converts locking for odbc containers from ast_mutex_lock to ao2_locks.