Expose got_ref_name_is_valid() for general purpose use. This will be needed for a future 'got send' command.