use the new ast_channels_check_lock interface
Split the lock checking from the manager action code
add freeze check and freeze channel lock/unlock