libgimpbase: improve gimp_unit_is_metric()

Don't directly compare doubles, use "ABS (foo - bar) < epsilon".