Dragging an app's icon across in Dock without ended up pinning
Solution 1:
There is no setting for this; any item on the dock that you move gets pinned to the dock. Locking the Dock's content does prevent items from being pinned, but it also prevents items from being moved/rearranged.
You could download an alternative dock replacement that looks and acts like the OS X Dock (there are a few) and hide the real Dock, but that's about it. It may be possible to somehow watch the Dock for newly pinned items and unpin them every 60 seconds or something... but that's probably more hassle than it's worth. OS X doesn't always like to be tinkered-with like that.