[UBSan] Move all runtime flags parsing to ubsan_flags.cc.

No functionality change.