add pool parameter to rpm_state_create so that we can use pool_error for error reporting