Add locker to mark_favorite action

Similar to c33b13809ef4e1941d3655479db8c5fcf5731013
See #423