Electronic correlation assisted ferroelectric metallic state in LiOsO$_3$