(6)An agreement under this section relating to any monument or land in Scotland and containing any such provision as is mentioned in subsection (5) above may be recorded in the Register of Sasines, and that subsection shall apply to any such agreement which is so recorded or (as the case may be) to any restriction, prohibition or obligation to which that provision relates.