When any harbor master neglects, upon application of any person engaged in the navigation of the harbor under his charge, to remove or cause to be removed any vessel riding at anchor therein and obstructing its channel, he shall pay to such person twenty dollars, with costs, to be recovered in an action on his official bond or on this section.