Actually it seems that no explicit lock is required, asx you can read in postgresl manual (v7.3) :
LOCK [ TABLE ] name [, ...] IN lockmode MODE
ROW EXCLUSIVE MODE
Note: The commands UPDATE, DELETE, and INSERT acquire this lock mode on the target table (in addition to ACCESS SHARE locks on any...