Threatened bird at risk of NSW dam wall