input: upon dyntag flush, reset 'lock' and 'busy' flags.
input: upon dyntag flush, reset 'lock' and 'busy' flags.

A dyntag entry may be linked from different tasks. So upon flush is
required to set the 'lock' to false so new incoming records could be
added, but also set the 'busy' state to true meaning it cannot be deleted
due to the reference.

Signed-off-by: Eduardo Silva <81f705dc2ce1a61a2621e0e4b442a9474e1d0c70@treasure-data.com>

takahasi/fluent-bit,takahasi/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,takahasi/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,takahasi/fluent-bit,fluent/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,takahasi/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,takahasi/fluent-bit,nokute78/fluent-bit,takahasi/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,takahasi/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,nokute78/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,fluent/fluent-bit