gst/gstformat.c: Fix locking order (must take lock before using n_values).