Indeed, why remove buoys inside or near the large harbours which were protected with heavy artillery and air coverage ?
About lighthouses, I know that they could be lighted up for the safety of friendly capital ships which were passing nearby. But I don't know if they were doing this for the passage of U-Boots...