Widow attack masterminds surrender before court, get bail