Shellac and linseed oil wouldn’t do that, so you must be using a different product.
You can always tint a shellac to whatever color you want.
Another thing to try (next time) is carve the slots and finish the wood, then inlay the metal after the finish is completely dry.