I am using postgres 9.3.6 version and i am using multiple INSERT/UPDATE SQL commands with explicit share lock.
[...]
4. I Want older postgres behavior in newer versions. So how to set this behavior through postgres parameters?
You need to upgrade to 9.3.21. Also, given the issues surrounding early 9.3 releases, did this cluster/database begin its life at 9.3.6 or was there an upgrade path to get there?
I don't know whether this is configurable but I would suspect not - your likely issue is software bugs that have since been fixed in one or more of the 15 releases since 9.3.6
David J.