Judges should use their existing powers to allow prison staff to use "reasonable force" to get defendants into the dock for sentencing, say former police officers.