Gold inches higher on safe-haven demand amid China worries