Without a selection it works - with a selection it prevents.
No selection OK

With selection -prevented.

It has nothing to do with versions, Mac or Windows, etc. This has always been a prevented measure when using the Lock Image Pixels lock. It was meant to prevent Shift+Ctrl+J which cuts the layer to a new one, but also prevents the copy at the same time.
If you need to copy a selected part of the layer use / to toggle all your locks on and off - it remembers which locks you had to restore
...