An elderly man locked up for allegedly molesting a female neighbor at a Brooklyn senior housing facility died in city Corrections custody over the weekend, officials and sources said.