Globular clusters in galaxies beyond the local group. II - The edge-on spirals NGC 891 and NGC 4565