The sentence that shows correct punctuation is:
To his shock and amazement, the door swung open; it was never locked in the first place!
(Note: I corrected a typo in your options, as the original option you provided with the correct punctuation contained a comma instead of a semicolon which is appropriate in this case. The semicolon properly connects the two independent clauses.)