Skip bgwriter's lock on newly promoted standby servers
Skip bgwriter's lock on newly promoted standby servers

Fixes ticket #1.

ossc-db/pg_reorg,mr-mustash/pg_repack,reorg/pg_reorg,bwtakacy/pg_repack,reorg/pg_reorg,reorg/pg_repack,reorg/pg_repack