MDL-25504: Fix handling of scheduled time.

Was returning negative timestamps instead of rolling over the
next most significant field.
MDL-25500: Added a fix for the pg_sql lock type.
MDL-25504 scheduled_task: Always return future time

Always return a time at least 1 minute in the future from get_next_scheduled_time().