Cim de Roca Sereny, Castell de Pera i Els Emprius