Fix head/tail false sharing issues.
Merge pull request #1374 from nitsanw/master

Fix head/tail false sharing issues