{
{    This interface is used to set a lock on the template file.
{
{       AVP$LOCK_TEMPLATE_FILE (DESIRED_LOCK_TYPE, LOCK_SET_BY_THIS_PROCEDURE,
{            TEMPLATE_FILE_HEADER, TEMPLATE_FILE_HEAP, FILE_INFORMATION, STATUS);
{
{ DESIRED_LOCK_TYPE: (input) Kind of lock to be placed on the template file.
{       AVC$UPDATE_ACCESS - The entire template file is locked to allow
{             updating; prevents reading and updating of the template file by
{             other instances of open.
{       AVC$READ_ACCESS - The entire template file is locked to prevent
{             updating of the template file by other instances of open.
{             Other instances of open may read the template file while this
{             lock is in effect.
{
{ LOCK_SET_BY_THIS_PROCEDURE: (output) Returns a boolean value that specifies
{       whether this call resulted in the file being locked.  TRUE means that
{       this call locked the template file.  FALSE means the template file was
{       already locked with a compatible lock type and the operation can be
{       performed, but the caller should not unlock the file when finished.
{
{ TEMPLATE_FILE_HEADER: (output) Pointer to the template file header record.
{
{ TEMPLATE_FILE_HEAP: (output) Pointer to the template file heap.
{
{ FILE_INFORMATION: (input, output) The record used by the template file
{       manager to hold information about the template file.
{
{ STATUS:  (output) Variable in which the completion status is returned.
{       CONDITIONS:
{             ave$conflicting_locks
{
