This has happened 3 times so it's definitely not a one off occurrence. - friends have been with me at the time and couldn't move it either.
So if you open a barrel and then leave it opened sometimes it will glitch out and when you return you won't be able to close the lid and/or pick it up.
No items were in the barrels at the time. Most recent was yesterday so it's fresh in my mind.