http-push: refactor lock-related headers creation for curl requests