Experimental simulation of a monogamy relation between quantum contextuality and nonlocality on an NMR quantum processor