fix(terraform): pin security-group module to 5.3.1 in linked-module test (#7570)