Fix head/tail false sharing issues

See discussion in issue #1310